import 'package:flutter_framework/utils/app_config/app_env.dart';
import 'package:flutter_framework/utils/http/model/base_url_model.dart';
import 'package:flutter_framework/utils/logs.dart';

class BaseUrlUtils {
  BaseUrlUtils._();
  static late BaseUrlModel baseUrlConfig;
  static void setConfig(AppEnv env) {
    if (env == AppEnv.dev) {
      /// 开发环境配置参数
      baseUrlConfig = BaseUrlModel(baseUrl: "https://www.devfastmock.site");
    } else if (env == AppEnv.preview) {
      /// 预发布环境配置参数
      baseUrlConfig = BaseUrlModel(baseUrl: "https://www.previewfastmock.site");
    } else {
      /// 正式环境配置参数
      baseUrlConfig = BaseUrlModel(baseUrl: "https://crypts.cn");
    }
  }
}
